import http from '@src/util/http';

export function settingInfo(params) {
    return http.post('/api/user/outside/update/settingInfo', params);
}

export function getSettingInfo(params) {
    return http.get(`/api/user/outside/get/settingInfo`, params);
}

export function isCanUseDomain(params) {
    return http.get(`/api/user/outside/check/domain?domain=${params.domain}`);
}

// 获取登录的配置
export function getLoginConfig(params) {
    return http.get('/api/user/outside/getLoginConfig', params)
}

// 保存sso登录的配置
export function saveSsoLoginConfig(params) {
    return http.post('/api/user/outside/saveSsoLoginConfig', params)
}

// 保存飞书登录的配置
export function saveLarkMyselfLoginConfig(params) {
    return http.post('/api/user/outside/saveLarkMyselfLoginConfig', params)
}

// 同步飞书自建应用的人员通讯录
export function syncAddressBook(params) {
    return http.get('/api/user/outside/lark/myself/syncAddressBook', params)
}